tools/hotplug/Linux: Use correct device name for vifs in setup scripts
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Feb 2011 18:21:35 +0000 (18:21 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Feb 2011 18:21:35 +0000 (18:21 +0000)
commitcd98e00714344d4a0c8bdb28ea58383b544491eb
treeddf1c967bbc16cbe6fbd357cbe7b347198701867
parentf393b48c186692426c42b46db299bf28940f25b9
tools/hotplug/Linux: Use correct device name for vifs in setup scripts

In vif-common.sh, set the shell variable "dev" to the new interface
name when interfaces are renamed, and consistently use this variable
in all the vif scripts.

This fixes hotplug of renamed interfaces.

From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
From: Patrick Scharrenberg <pittipatti@web.de>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Patrick Scharrenberg <pittipatti@web.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/vif-common.sh
tools/hotplug/Linux/vif-nat
tools/hotplug/Linux/vif-route